# @Version : 1.0
# @Author  : 刘宇
# @File    : 29_break_detail.py
# @Time    : 2025/10/8 14:56
#
# count = 0
# while True:
#     print("hi while")
#     count += 1
#     if count == 3:
#         break
#     while True:
#         print("OK while")
#         break
# else:
#     print("Hello,while")

num = [1, 2, 3, 4, 5, 6]
for i in num:
    if i > 3:
        break

print("i=", i)  # 4
